package com.neusoft.neuiotms.common.dto;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractDTO;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class DictionaryDTO extends AbstractDTO {

    private static final long serialVersionUID = 1L;

    /** 编码 */
    @NotBlank(message = "编码不能为空")
    @Length(max = 255, message = "编码不能超过{max}位")
    private String code;

    /** 类型 */
    @NotBlank(message = "类型不能为空")
    @Length(max = 255, message = "类型不能超过{max}位")
    private String type;

    /** 文本 */
    @NotBlank(message = "文本不能为空")
    @Length(max = 255, message = "文本不能超过{max}位")
    private String text;

    /** 类型描述 */
    private String typeDesc;

    private int sort = 0;
}
